package com.distribute.client.controller;

import com.distribute.client.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * IndexController
 *
 * @author zhoujunmei
 * @date 2021/6/21
 */
@RestController
@RequestMapping("/")
public class IndexController {


    @Autowired
    public DemoService demoService;

    /**
     * 该接口用于给阿里云检测
     *
     * @return 默认返回
     */
    @GetMapping
    public String index() {
        demoService.updateDemo("1231231");
        return "ok";
    }
}
